package com.tothefor.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)// 使用链式方法
@TableName("s_questionconnect")
public class QuestionConnect {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private int id;
    /**
     * 角色编号
     */
    @TableField("questionId")
    private int questionId;
    /**
     * 菜单编号
     */
    @TableField("naireId")
    private int naireId;

    public QuestionConnect(int questionId,int naireId){
        this.questionId = questionId;
        this.naireId = naireId;
    }
}
